package com.ifonly.activerecord.annotation;

import com.ifonly.activerecord.tx.TransactionIsolation;

import java.lang.annotation.*;

/**
 * @author ifonly
 * @version 1.0 2016-01-21 10:51
 * @since JDK 1.6
 */
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface Tx {

    TransactionIsolation level() default TransactionIsolation.TRANSACTION_READ_COMMITTED;

}
